package com.hzb.shop.order.service;

import com.hzb.shop.order.entiy.ShopOrderInfo;
import com.hzb.shop.order.mapper.ShopOrderInfoMapper;
import com.hzb.shop.order.rpc.ShopOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/12.
 */
@Service("shopOrderInfoService")
public class ShopOrderInfoServiceImpl implements ShopOrderInfoService {
    @Autowired
    private ShopOrderInfoMapper shopOrderInfoMapper;

    public int add(ShopOrderInfo shopOrderInfo) {
        return shopOrderInfoMapper.add(shopOrderInfo);
    }

    public int update(ShopOrderInfo shopOrderInfo) {
        return shopOrderInfoMapper.update(shopOrderInfo);
    }

    public ShopOrderInfo get(ShopOrderInfo shopOrderInfo) {
        return shopOrderInfoMapper.get(shopOrderInfo);
    }

    public List<ShopOrderInfo> findList(ShopOrderInfo shopOrderInfo) {
        return shopOrderInfoMapper.findList(shopOrderInfo);
    }

    public int delete(ShopOrderInfo shopOrderInfo) {
        return shopOrderInfoMapper.delete(shopOrderInfo);
    }
}
